<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title>SMap test</title>
</head>

<script type="text/javascript" src="../smap.js"></script>
<script type="text/javascript" src="js/testUnit.js"></script>
<body>

<script>
	title('testing Listeners class');
	var l = new Listeners();
	out('adding callback for (msg1)');
	l.add("msg1", function() {
		return "i am msg1";
	});
	test('l.call("msg1")', 'i am msg1');
	test('l.broadcast("msg1")', 'i am msg1');
	title('END');
</script>
</body>
</html>